import React, { Component } from 'react'

export default function Fn() {
    let name = 'kang'
    let num = 1
    function getName (){
        return 'getName'
    }
    return <>
        <div>app</div>
        {/* 使用引号传递字符串 */}
        {'this is message'}
        {name}
        {getName()}
        {new Date().getDate()}
        <div style={{color:'red',fontSize:num?'20px':'50px',}}>this is  app</div>
    </>
}